package cn.da.shuai.cool.system.model.entity.position;

import cn.da.shuai.cool.common.entity.EntityBase;
import cn.da.shuai.cool.system.model.enums.position.PositionStatusType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统岗位表
 *
 * @author 大帅哥
 * @since 2025-01-03
 */
@Getter
@Setter
@TableName("cool_position")
@Schema(name = "CoolPosition", description = "系统岗位表")
public class CoolPosition extends EntityBase {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "岗位名称")
    @TableField("position_name")
    private String positionName;

    @Schema(description = "岗位编码")
    @TableField("position_code")
    private String positionCode;

    @Schema(description = "显示顺序")
    @TableField("position_sort")
    private Integer positionSort;

    @Schema(description = "岗位状态（1正常 2停用 3删除）")
    @TableField("status")
    private PositionStatusType status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;
}